package demo3.boot.service;

import demo3.boot.mapper.UserMapper;
import demo3.boot.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    UserMapper userMapper;

    public User queryUserByName(String name){
        return userMapper.queryUserByName(name);
    }
    public User queryUserById(int id){
        return userMapper.queryUserById(id);
    }
}
